#ifndef SOFTWARE_SERIAL_H_
#define SOFTWARE_SERIAL_H_

#include "msp430x20x3.h"

//------------------------------------------------------------------------------
// Hardware-related definitions
//------------------------------------------------------------------------------
#define UART_TXD   0x02                     // TXD on P1.1 (Timer0_A.OUT0)
#define UART_RXD   0x04                     // RXD on P1.2 (Timer0_A.CCI1A)

//------------------------------------------------------------------------------
// Function prototypes
//------------------------------------------------------------------------------
void TimerA_UART_init(unsigned short baud);
void TimerA_UART_tx(unsigned char byte);
void TimerA_UART_print(char *string);
unsigned char TimerA_UART_rx();

#endif /*SOFTWARE_SERIAL_H_*/
